package com.xsh.gls.service;

import com.xsh.gls.pojo.Company;
import org.springframework.stereotype.Component;
import java.util.List;


/**
 * @author shkstart
 * @date 2019/1/23 - 15:30
 */
@Component
public interface CompanyService {

    List<Company> getByAll(String cName,Integer cType,String pName,String cAddress,String pPhone);

    Company selectByNT(String cName,Integer cType);

    boolean insert(Company company);

    Company selectAll(Integer id);

    boolean deleteByPrimaryKey(Integer id);

    boolean updateByPrimaryKey(Company company);

    List<Company> select();

    List<Company> selectByType(Integer cType);
}
